package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_circle_post;

import cn.com.api.mapper.ApiU_circle_postMapper;

import cn.com.api.service.ApiU_circle_postService;

/**
 * 
 **/
@Service
public class U_circle_postServiceImplBase {
	@Autowired
	private ApiU_circle_postMapper apiU_circle_postMapper;
    
    // 根据id获取
	public ApiU_circle_post findU_circle_postById(Integer id){
		ApiU_circle_post u_circle_post = apiU_circle_postMapper.findU_circle_postById( id );
		return u_circle_post;
	}
    
    //查看数据集
	public List<ApiU_circle_post> findU_circle_posts(){
        List<ApiU_circle_post> u_circle_posts = apiU_circle_postMapper.findU_circle_posts();
		return u_circle_posts;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_circle_postsByMap(HashMap condition){
        List<Map<String, Object>> u_circle_posts = apiU_circle_postMapper.findU_circle_postsByMap(condition);
		return u_circle_posts;
    }
    
	// 添加
	public int insertU_circle_post(ApiU_circle_post u_circle_post){
		int ret_I= apiU_circle_postMapper.insertU_circle_post(u_circle_post);
		return ret_I;
	}

	// 修改
	public int updateU_circle_post(ApiU_circle_post u_circle_post){
		int ret_I= apiU_circle_postMapper.updateU_circle_post(u_circle_post);
		return ret_I;
	}
	
    // 删除
	public int deleteU_circle_post(Integer id){
		int ret_I= apiU_circle_postMapper.deleteU_circle_post( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


